package com.sk.bilibili.other;

import com.sk.bilibili.property.BiliBiliProperty;
import com.sk.bilibili.utils.BSessionUtils;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author 邵康
 * @date 2021/11/23 16:29
 * // 用于测试的类
 */
@Component
public class TestDebug implements InitializingBean {

    @Autowired
    private BiliBiliProperty biliBiliProperty;

    @Override
    public void afterPropertiesSet() throws Exception {
        BSessionUtils.setDefaultMemberId(biliBiliProperty.getDefaultMemberId());
    }

}
